package com.stylefeng.guns.rest.common.persistence.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.stylefeng.guns.rest.common.persistence.model.Catalogy;
import com.stylefeng.guns.rest.modular.catalogy.controller.dto.ArticleListResponse;


import java.util.List;
import java.util.Map;

/**
 * <p>
  *  Mapper 接口
 * </p>
 *
 * @author stylefeng
 * @since 2017-08-23
 */
public interface CatalogyMapper extends BaseMapper<Catalogy> {
    List<Catalogy> queryCatalogyList();

    List<ArticleListResponse> queryArticleTypeList(Map<String, Object> data);

    //获取某类下的文章列表（支持多个分类的视频查询）
    List<ArticleListResponse> queryArticleTypeList2(Map<String, Object> data);

    List<ArticleListResponse> querygetCatalogyHotListByWeek(Map<String, Object> data);
    List<ArticleListResponse> querygetCatalogyHotListByMonth(Map<String, Object> data);
    List<ArticleListResponse> querygetCatalogyHotListByAll(Map<String, Object> data);

    Catalogy queryCatalogyByName(Map<String, Object> data);
}